package com.example.uwe.model;

import java.sql.Date;

public class RentalAgreement {
    private int id;
    private int leaseNumber;
    private int accommodationId;
    private Accommodation accommodation;
    private String firstName;
    private String lastName;
    private String studentNumber;
    private String mobileNumber;
    private Date createdAt;
    
    public RentalAgreement(int id, int leaseNumber, int accommodationId, Accommodation accommodation, String firstName, String lastName, 
                           String studentNumber, String mobileNumber, Date createdAt) {
        this.id = id;
        this.leaseNumber = leaseNumber;
        this.accommodationId = accommodationId;
        this.accommodation = accommodation;
        this.firstName = firstName;
        this.lastName = lastName;
        this.studentNumber = studentNumber;
        this.mobileNumber = mobileNumber;
        this.createdAt = createdAt;
    }

    public long getLeaseNumber() {
        return leaseNumber;
    }

    public Accommodation getAccommodation() {
        return accommodation;
    }

    public void setAccommodation(Accommodation accommodation) {
        this.accommodation = accommodation;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(String studentNumber) {
        this.studentNumber = studentNumber;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }
}